how to run a function as administrator in c#

81

how to run a function as administrator in c# -

[PrincipalPermission(SecurityAction.Demand, Role = @"BUILTIN\Administrators")]
public void MyMethod()
{
  
}

Comments

Submit
0 Comments